﻿﻿//======================================================================
//
//        Copyright : Zhengzhou Strawberry Computer Technology Co.,LTD.
//        All rights reserved
//        
//        Application:NFinal MVC framework
//        Filename :IndexController.cs
//        Description :首页控制器
//
//        created by Lucas at  2015-6-30`
//     
//        WebSite:http://www.nfinal.com
//
//======================================================================
using System;
using System.Collections.Generic;
using System.Web;

namespace WebApplication1.DDD.Web.Default.IndexController
{
    public class IndexAction  : Controller
	{
		#if (!AspNET && !MicrosoftOwin && !NFinalOwin)
		public IndexAction(HttpContext context):base(context){}
		public IndexAction(Microsoft.Owin.IOwinContext context):base(context){}
		public IndexAction(NFinal.Owin.HtmlWriter writer,NFinal.Owin.Request request):base(writer,request){}
		#endif
		#if AspNET
		public IndexAction(HttpContext context):base(context){}
		#endif
		#if MicrosoftOwin
		public IndexAction(Microsoft.Owin.IOwinContext context):base(context){}
		#endif
		#if NFinalOwin
		public IndexAction(string fileName, NFinal.Owin.Request request, NFinal.CompressMode compressMode) :base(fileName,request,compressMode){}
		public IndexAction(System.IO.Stream stream,NFinal.Owin.Request request, NFinal.CompressMode compressMode) : base(stream,request,compressMode) {}
		public IndexAction(System.Collections.Generic.IDictionary<string, object> enviroment, NFinal.Owin.Request request, NFinal.CompressMode compressMode):base(enviroment,request,compressMode){}
		#endif
		public IndexAction(Controller controller):base(controller){}
        public override void Before()
        {
            base.Before();
        }
        [RewriteDirectory("/show","/Add")]
        [RewriteFile("/Add","/Index.html")]
        public void Index(int jiage,int fangxing,int leixing,int p)
        {
            
			Write("<!doctype html><html><head><title>nfinal框架</title><script src=\"/DDD/Content/js/jquery-1.11.2.min.js\"></script><link href=\"/DDD/Content/css/frame.css\" type=\"text/css\" rel=\"stylesheet\" /> <style type=\"text/css\">.auto-style1 {width: 140px;}.auto-style2 {width: 197px;}</style> </head><body><header class=\"header\"> NFinal框架:这是头,来自模版 </header><article> Hello,NFinal! </article> <script> var a = 1; var b = 2; </script><footer> NFinal框架.这是尾 </footer></body></html>");
        }
    }
}